﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Threading;
using DevExpress.Web;


namespace WebContratos
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsCallback)
            {
                // Intentionally pauses server-side processing, 
                // to demonstrate the Loading Panel functionality.
                Thread.Sleep(1000);
            }
          //  Utils.RegisterCssLink(this, "~/PopupControl/CSS/ModalWindow.css");


        }

        protected void btOK_Click(object sender, EventArgs e)
        {
            if ((this.tbLogin.Text.Equals("atipan")) && ((this.tbPassword.Text.Equals("atipan"))))
            {
                this.lblMensaje.Text = "Usuario Correcto";

                string cierraPopup = "<script>try{pcLogin.Hide();}catch(e){ alert(e); }</script>";

                Page.RegisterStartupScript("keyClientcierraPopup", cierraPopup);
            }
            else
            {
                this.lblMensaje.Text = "Usuario Incorrecto";
            }
        }
    }
}
